﻿<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title>商品后台管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

<style>
        /* reset */
    body,h1,h2,h3,h4,h5,p,dl,dd,ul,ol,form,input,textarea,th,td,select { margin:0; padding:0; }
    em { font-style:normal; }
    li { list-style:none; }
    a { text-decoration:none; color:#000000;}
    img { border:none; vertical-align:top; }
    table { border-collapse:collapse; }
    input,textarea { outline:none; }
    textarea { resize:none; overflow:auto; }
    body { font-size:12px; font-family:"微软雅黑"; }
    /* end reset */
    .box{width:850px;border:1px solid #77AAE0;margin-left:10px;}
    .box_head{width:848px;height:34px;background:url(./Template/admin/images/tab_bg.gif) repeat-x;padding-left:2px;border-bottom:1px solid #77AAE0;}
    .box_head p{float:left;width:60px;height:34px;line-height:34px;background:url(./Template/admin/images/tab_bg_left.gif) no-repeat;text-indent:5px;color:#fff;font-weight:bold;}
    .box_head input{display:inline-block;width:62px;height:24px;background:url(./Template/admin/images/btn.gif);border:0;text-indent:-9999px;margin:5px 5px 0 0;}
    .box_head .sub1{background-position:0 -24px;}

    .table{padding:20px 10px;}
    table{margin:5px 0 0 10px;}
    table tr th{width:100px;height:27px;line-height:27px;padding:0 5px;text-align:center;background:url(./Template/admin/images/gridview_bg_th.gif) repeat-x;border:1px solid #D6D6D6}
    table tr td{height:27px;line-height:27px;padding:0 5px;text-align:center;background:#fff;border:1px solid #D6D6D6}
    table tr td a{padding:0 3px;}


    .fl{float:left;}
    .fr{float:right;}
    .clear { zoom:1; }
.clear:after { content:''; display:block; clear:both; }
</style>
</head>
<script src="./Template/Public/js/jquery.js"></script>
<script>
    $(function() {
        $('table a').click(function() {
            var address = $(this).attr('address');
            if(address != "undefined") {
                alert(address);
            }
        });
    });
</script>


<body>
    <div class="box">
        <div class="box_head">
            <p>用戶列表</p>
        </div>        
        <div class="table">
        <table>
            <tr>
                <th>Item</th>
                <th>員工號</th>
                <th>密码</th>
                <th>操作</th>
            </tr>
            <?php foreach($result as $v) :?>
                <tr>
                    <td><?php echo $i; ?></td>
                    <td><?php echo $v[0]; ?></td>
                    <td><?php echo $v[1]; ?></td>
                    <td><a href="">修改</a><a address="./user.php?action=del&user=<?php echo $v[0];?>" href="">删除</a></td>
                </tr>
            <?php $i++; ?>
            <?php endforeach; ?>            
        </table>
        </div>
    </div>
</body>

</html>
